package namespace

import (
	"kubernate-server/service"

	"github.com/gin-gonic/gin"
)

type K8sNamespaceRouter struct {
}

func (*K8sNamespaceRouter) InitK8SNameSpaceRouter(r *gin.Engine) {
	group := r.Group("/namespace")
	group.GET("/list", service.ApiGroupApp.GetNameSpaceList)
	group.POST("/:nameSpace", service.ApiGroupApp.CreateNamespace)
	group.DELETE("/:nameSpace", service.ApiGroupApp.DeleteNamespace)
}
